package _b.jiekou;

public class Cat implements Animal,Action{
    private String name;

    public Cat(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    @Override
    public void shout() {
        System.out.println(this.getName() + " 猫叫");
    }

    @Override
    public void eat() {
        System.out.println(this.getName() + " 猫吃");
    }
}
